﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Core.Utilities;
using VOL.Domain.IRepositories;
using VOL.Entity.DomainModels;

namespace VOL.Domain.IServices.MasterData
{
    public interface IMaterialProductService
    {
        /// <summary>
        /// 添加物料产品信息
        /// </summary>
        /// <param name="materialProduct"></param>
        /// <returns></returns>
        Task<WebResponseContent> AddMaterialProduct(MaterialProduct materialProduct);

        /// <summary>
        /// 更新物料产品信息
        /// </summary>
        /// <param name="materialProduct"></param>
        /// <returns></returns>
        Task<WebResponseContent> UpdateMaterialProduct(MaterialProduct materialProduct);

        /// <summary>
        /// 删除物料产品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<WebResponseContent> DeleteMaterialProduct(int id);

        /// <summary>
        /// 获取物料产品信息
        /// </summary>
        /// <returns></returns>
        Task<WebResponseContent> GetMaterialProduct(string materialCode, string materialName, int pageIndex, int pageSize);

    }
}
